import java.util.Scanner;

/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2022-04-30
 * Time:4:26
 */
public class Tesr {
    public static void main(String[] args) {
        
    }
}
    /*// 牛牛商场促销活动：
    //满100全额打9折；
    //
    //满500全额打8折；
    //
    //满2000全额打7折；
    //满5000全额打6折；
    //且商场有抹零活动，不足一元的部分不需要付款（类型强制转换）
    //牛大姨算不清楚自己应该付多少钱，请你帮忙算一下
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        //write your code here......
        while (console.hasNext()){
            int cost = console.nextInt();
            float rate = 1.0f;
            if(cost>=100&&cost<500){
                rate=0.9f;
            }else if(cost>=500&&cost<2000){
                rate=0.8f;
            }else if(cost>=2000&&cost<5000){
                rate=0.7f;
            }else if(cost>=5000){
                rate=0.6f;
            }
            cost=(int)(cost*rate);
            System.out.println(cost);
        }
    }
}*/
   /* //四舍五入之后的整数（小数点后一位>=5则进一，否则舍去）
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double d= scanner.nextDouble();

        //write your code here......

        System.out.println(Math.round(d));
    }
}*/

    /*public static int Factorial(int num){
        if(num==1){
            return 1;
        }
        return num*Factorial(num-1);
    }

    public static void main(String[] args) {
        //递归求 N 的阶乘
        Scanner scanner=new Scanner(System.in);
        System.out.print("请输入所求阶乘的数:");
        while (scanner.hasNext()){
            int num = scanner.nextInt();
            System.out.println(num+"的阶乘为:"+Factorial(num));
            System.out.print("请输入所求阶乘的数:");
        }
    }
}*/

   /* public static int add(int num){
        if (num==0){
            return 0;
        }
        return num+add(num-1);
    }

    public static void main(String[] args) {
        //递归求 1 + 2 + 3 + ... + 10
        Scanner scanner=new Scanner(System.in);
        System.out.print("请输入累加到的数:");
        while (scanner.hasNext()){
            int num = scanner.nextInt();
            System.out.println("从1累加至"+num+"的和为:"+add(num));
            System.out.print("请输入累加到的数:");
        }
    }
}*/

    /*public static void Print(int num){
        if (num<10){
            System.out.print(num+" ");
        }else{
            Print(num/10);
            System.out.print(num%10+" ");
        }

    }

    public static void main(String[] args) {
        //按顺序打印一个数字的每一位(例如 1234 打印出 1 2 3 4) （递归）
        Scanner scanner=new Scanner(System.in);
        System.out.print("请输入一个整数:");
        while (scanner.hasNext()){
            int num = scanner.nextInt();
            Print(num);
            System.out.println();
            System.out.print("请输入一个整数:");
        }
    }
}*/

   /* public static int fib(int n){
        if (n==1||n==2){
            return 1;
        }
        return fib(n-1)+fib(n-2);
    }

    //递归求斐波那契数列的第 N 项
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.print("请输入你要求的项:");
        while (scanner.hasNext()){
            int num = scanner.nextInt();
            System.out.println("第"+num+"项斐波那契数为:"+fib(num));
            System.out.print("请输入你要求的项:");
        }
    }
}*/

   /* public static int Sum(int n){
        if (n<10){
            return n;
        }
        return n%10+Sum(n/10);
    }

    public static void main(String[] args) {
        //写一个递归方法，输入一个非负整数，返回组成它的数字之和
        Scanner scanner=new Scanner(System.in);
        System.out.print("请输入一个非负整数:");
        while (scanner.hasNext()){
            int num = scanner.nextInt();
            System.out.println("各个位的和为:"+Sum(num));
            System.out.print("请输入一个非负整数:");
        }
    }
}*/

    /*public static int fib(int n){
        int f1 = 1;
        int f2 = 1;
        int f3 = 0;
        if (n<=2){
            return 1;
        }
        for (int i = 2; i < n; i++) {
            f3=f1+f2;
            f1=f2;
            f2=f3;
        }
        return f3;
    }

    public static void main(String[] args) {
        //求斐波那契数列的第n项。(迭代实现)
        Scanner scanner=new Scanner(System.in);
        System.out.print("请输入一个整数:");
        while(scanner.hasNext()) {
            int num = scanner.nextInt();
            System.out.println("第"+num+"项斐波那契数为:"+fib(num));
            System.out.print("请输入一个整数:");
        }
    }
}
*/